﻿using Appliaction.IAppServices.Base_Manage;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class DJBHController : ControllerBase
    {
        private readonly IDJBHService dJBHService;

        public DJBHController(IDJBHService dJBHService)
        {
            this.dJBHService = dJBHService;
        }

        [HttpGet]
        public JsonResult DJBH(int en_code)
        {
            return new JsonResult(dJBHService.DJBH(en_code));
        }
    }
}
